<template>
  <div>
    <br>
    <input type="button" value="个人信息" class="mybtn" v-on:click="pseron">
<!--    <div class="mydiv"></div>-->
    <input type="button" value="退出" class="mybtn mymargin" v-on:click="logout()"><br><br>
    <br>

  </div>
</template>

<script>
    import store from "../store/store";

    export default {
      name: "My",
      methods:{
        logout:function () {
          this.$store.commit('LOGOUT')
          this.$router.push({'path':'/login'})
        },
        back(){
          this.$router.go(-1);//返回上一层
        },
        pseron(){
          this.$router.push('/person')
        }
      }
    }
</script>

<style scoped>
.div{
  border: #E5E5E5 50px dashed;
}
.myul{
  /* 去掉 li 前面默认的点  */
  list-style-type:none;
  border-bottom:1px solid #ffeecc;
  padding-bottom: 7px;
  padding-top: 7px;
}
  .mybtn{
    width:90%;height:40px;border:2px #f7f4f2 ;float:left;
    position: relative;
    left: 10px;
    background-color: #fffcf9;
  }
   .mymargin{margin-top:30px;}
</style>
